package org.monster.ui;

import java.io.FileInputStream;
import java.util.Properties;

public class PointUIFactory {
	
	private static Properties prop;
	
	static{
		prop = new Properties();
		try{
			prop.load(new FileInputStream("C:\\workspace\\PointDAO\\ui.properties.txt"));
			
		}catch(Exception e){
			e.printStackTrace();
		}
	}
	

	public static PointUI getUI(String oper) throws Exception{
		
		String value = (String)prop.get(oper);
		
		return (PointUI)Class.forName(value).newInstance();
	}

}









